### set log levels - for more verbose logging change 'info' to 'debug' ### 
log4j.rootLogger=info,stdout
#log4j.rootLogger=stdout,errLog,infoLog
#log4j.logger.com.res.interceptor.SysInterceptor = info
#log4j.logger.net.sf.hibernate = info
### direct log messages to stdout ###

### 配置控制台输出日志##
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
#log4j.appender.stdout.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} [%c]-[%p]:%L %m%n
log4j.appender.stdout.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss}  [%c{10}]:Line %L %5p %m%n


### 配置log格式输出错误日志##
log4j.appender.errLog=org.apache.log4j.DailyRollingFileAppender 
log4j.appender.errLog.Threshold=error
log4j.appender.errLog.File=../logs/ExpenseDistribution/error/error.log
log4j.appender.errLog.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.errLog.Encoding=utf-8
log4j.appender.errLog.layout=org.apache.log4j.PatternLayout
log4j.appender.errLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}  [%c{10}]:Line %L %5p %m%n

### 配置log格式输出INFO日志##
log4j.appender.infoLog=org.apache.log4j.DailyRollingFileAppender
log4j.appender.infoLog.Threshold=INFO
log4j.appender.infoLog.File=../logs/ExpenseDistribution/info/info.log
log4j.appender.infoLog.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.infoLog.Encoding=utf-8
log4j.appender.infoLog.layout=org.apache.log4j.PatternLayout
log4j.appender.infoLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}  [%c{10}]:Line %L %5p %m%n


### 配置HTML格式输出错误日志##
log4j.appender.error=org.apache.log4j.RollingFileAppender 
log4j.appender.error.File=../logs/ExpenseDistribution/error/error.html
log4j.appender.error.MaxFileSize=500KB 
log4j.appender.error.MaxBackupIndex=1 
log4j.appender.error.Threshold=error
log4j.appender.error.layout=org.apache.log4j.HTMLLayout 

### 配置HTML格式输出INFO日志##
log4j.appender.info=org.apache.log4j.RollingFileAppender 
log4j.appender.info.Threshold=INFO
log4j.appender.info.File=../logs/ExpenseDistribution/info/info.html
log4j.appender.info.MaxFileSize=1024KB 
log4j.appender.info.MaxBackupIndex=2 
log4j.appender.info.layout=org.apache.log4j.HTMLLayout 